#include<iostream>
#include<cstring>
using namespace std;
class CVector
{
    private:
        int *data;
        int n;
    public:
        CVector()
        {
            n=5;
            data=new int[n];
            for(int i=0;i<n;i++)
            {
                data[i]=i;
            }
        }
        CVector(int n1,int* a)
        {
            data=new int[n1];
            n=n1;
            for(int i=0;i<n1;i++)
            {
                data[i]=a[i];
            }
        }
        void Print()
        {
            for(int i=0;i<n;i++)
            {
                if(i!=0)
                    cout<<" ";
                cout<<data[i];
            }
        }
        ~CVector()
        {
            if(data)
                delete[] data;
        }

        float Average()
        {
            float sum=0;
            for(int i=0;i<n;i++)
            {
                sum+=data[i];
            }
            return sum/n;
        }
};
class CStudent
{
    private:
        string name;
        CVector score;
    public:
        CStudent(string name1,int n1,int* a1):name(name1),score(n1,a1){ }
        void Print()
        {
            cout<<name<<" ";
            score.Print();
            float ans=score.Average();
            printf(" %.2f\n",ans);
        }
};
int main()
{
    string name;
    while(cin>>name)
    {
        int n;
        cin>>n;
        int a1[n];
        for(int i=0;i<n;i++)
        {
            cin>>a1[i];
        }
        CStudent tmp(name,n,a1);
        tmp.Print();
    }
}